<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
class Stockrecord_model extends CI_Model {
	public function __construct() {
		parent::__construct ();
	}
	/*
	 * 添加库存增减记录
	 */
	public function create($stockrecord) {
		$this->db->insert ( 't_stockrecord', $stockrecord );
		return $this->db->insert_id ();
	}
}